package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RolePermission entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "role_permission", catalog = "lldb")
public class RolePermission implements java.io.Serializable {

	// Fields

	private Integer id;
	private String roleid;
	private Integer permid;

	// Constructors

	/** default constructor */
	public RolePermission() {
	}

	/** full constructor */
	public RolePermission(String roleid, Integer permid) {
		this.roleid = roleid;
		this.permid = permid;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "roleid", nullable = false, length = 36)
	public String getRoleid() {
		return this.roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	@Column(name = "permid", nullable = false)
	public Integer getPermid() {
		return this.permid;
	}

	public void setPermid(Integer permid) {
		this.permid = permid;
	}

}